package cn.iocoder.yudao.module.system.util.neo4j.neo4jCeshi;

import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VulRepository extends Neo4jRepository<VulEntity,String> {

    @Query("MATCH (n:Vul) where n.label contains $label RETURN n")
    List<VulEntity> getVulEntityByLabel(@Param("label") String label);

}
